package com.qidian.mes.pojo;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/27 19:06
 * Description
 */
@Data
public class MdUnitMeasure {
    private Long measureId;       //单位ID
    private String measureCode;     //单位编码
    private String measureName;     //单位名称
    private String primaryFlag;     //是否主单位
    private Long primaryId;       //主单位ID
    private Double changeRate;      //换算比例
    private String enableFlag;      //是否启用
    private String remark;      //备注
    private String createBy;        //创建人
    private Date createTime;      //创建时间
    private String updateBy;        //更新人
    private Date updateTime;      //更新时间
    private Long createTimeMills;       //
    private Long updateTimeMills;       //

    public Long getCreateTimeMills() {
        if (Objects.nonNull(this.createTime)){
            return this.createTime.getTime();
        }
        return null;
    }

    public void setCreateTimeMills(Long createTimeMills) {
        this.createTimeMills = createTimeMills;
    }

    public Long getUpdateTimeMills() {
        if (Objects.nonNull(this.createTime)){
            return this.updateTime.getTime();
        }
        return null;

    }

    public void setUpdateTimeMills(Long updateTimeMills) {
        this.updateTimeMills = updateTimeMills;
    }
}
